package com.ruoyi.common.core.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ruoyi.common.utils.CustomLocalDateTimeDeserializer;
import com.ruoyi.common.utils.CustomLocalDateTimeSerializer;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDateTime;

@Setter
@Getter
@ToString(callSuper = true)
public class MaterialExp implements Serializable {
    private static final long serialVersionUID = 1L;

    /** 修改时间 */
    @TableField(value ="modifyDate",fill = FieldFill.INSERT_UPDATE)
    @JsonSerialize(using = CustomLocalDateTimeSerializer.class)
    @JsonDeserialize(using = CustomLocalDateTimeDeserializer.class)
    private LocalDateTime modifyDate;
    /** 修改员工姓名 */
    @TableField(value = "modifyStaffName",fill = FieldFill.INSERT_UPDATE)
    private String modifyStaffName;
    /** 修改员工ID */
    @TableField(value = "modifyStaffId",fill = FieldFill.INSERT_UPDATE)
    private Long modifyStaffId;

    /** 审核时间 */
    @TableField(value = "passDate")
    @JsonSerialize(using = CustomLocalDateTimeSerializer.class)
    @JsonDeserialize(using = CustomLocalDateTimeDeserializer.class)
    private LocalDateTime passDate;
    /** 审核员工姓名 */
    @TableField(value = "passStaffName")
    private String passStaffName;
    /** 审核员工ID */
    @TableField(value = "passStaffId")
    private Long passStaffId;


    /** 创建时间 */
    @TableField(value = "createDate",updateStrategy = FieldStrategy.NEVER,fill = FieldFill.INSERT)
    @JsonSerialize(using = CustomLocalDateTimeSerializer.class)
    @JsonDeserialize(using = CustomLocalDateTimeDeserializer.class)
    private LocalDateTime createDate;
    /** 创建员工ID */
    @TableField(value = "createStaffId",updateStrategy = FieldStrategy.NEVER,fill = FieldFill.INSERT)
    private Long createStaffId;
    /** 创建员工姓名*/
    @TableField(value = "createStaffName",updateStrategy = FieldStrategy.NEVER,fill = FieldFill.INSERT)
    private String createStaffName;

}
